<template>
  <div :class="wrapClasses" :style="wrapStyles">
    <!--label-->
    <label :class="labelClasses" :for="elementId" :style="labelStyles" v-if="isShowLabel">
      <slot name="label">{{label}}</slot>
    </label>
    <textarea
      ref="textarea"
      :id="elementId"
      :class="textareaClasses"
      :style="textareaStyles"
      v-bind="inputAttrs"
      v-on="inputListeners"
      v-bind:value="value">
    </textarea>
    <!--验证提示-->
    <div :class="errorTipClasses" :style="errorTipStyles" v-if="isShowMessage">{{validateMessage}}</div>
  </div>
</template>
<script type="text/ecmascript-6"  src="./index.js"></script>
